package com.song.studylineserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.song.studylineserver.domain.Post;
import com.song.studylineserver.service.PostService;
import com.song.studylineserver.mapper.PostMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Swtao
* @description 针对表【sl_post(岗位信息表)】的数据库操作Service实现
* @createDate 2022-02-02 22:35:33
*/
@Service
public class PostServiceImpl extends ServiceImpl<PostMapper, Post>
    implements PostService{
    @Resource
    PostMapper postMapper;

    @Override
    public List<Post> selectPostAll() {
       return postMapper.selectPostAll();
    }

    @Override
    public List<Long> selectPostListByUserId(Long userId) {
        return postMapper.selectPostListByUserId(userId);
    }
}




